package com.service.cook.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dao.cook.CookDaoL;
import com.po.CookL;
import com.po.OrderL;
import com.service.cook.CookServiceL;
@Service
public class CookServiceImpL implements CookServiceL {
	@Resource(name="cookDaoImpL")
	private CookDaoL cookDao;
	@Override
	public int addCook(CookL cook) {
		return cookDao.addCook(cook);
	}
	@Override
	public List<OrderL> getOrderList() {
		return cookDao.getOrderList();
	}
	
	@Override
	public int updateOrderStatus(OrderL order) {
		return cookDao.updateOrderStatus(order);
	}
	@Override
	public List<OrderL> getOrderListByStatus(OrderL order) {
		return cookDao.getOrderListByStatus(order);
	}
	@Override
	public List<OrderL> getOrderListByDate(String order) {
		return cookDao.getOrderListByDate(order);
	}
	@Override
	public CookL findCookInfo(CookL cook) {
		return cookDao.findCookInfo(cook);
	}
	@Override
	public List<OrderL> getOrderListNoCheck() {
		return cookDao.getOrderListNoCheck();
	}
	@Override
	public List<OrderL> getOrderListInfoById(OrderL order) {
		return cookDao.getOrderListInfoById(order);
	}
	@Override
	public List<OrderL> getOrderListNoCheckInfoById(OrderL order) {
		return cookDao.getOrderListNoCheckInfoById(order);
	}
	@Override
	public List<OrderL> getOrderListByDateInfoById(OrderL order) {
		return cookDao.getOrderListByDateInfoById(order);
	}

}

